﻿/*
* Copyright (c) 2007-2008 wqNotes Project
* License: BSD
* Windows: OptionsForm.cs, $Revision: 53 $
* $HeadURL: http://wqnotes.googlecode.com/svn/tags/0.9.3/OptionsForm.cs $
* $Date: 2008-07-13 15:51:15 +0000 (Sun, 13 Jul 2008) $
*/

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace wqNotes
{
   public partial class OptionsForm : Form
   {
      Options NewOptions;

      public OptionsForm()
      {
         InitializeComponent();
      }

      private void OptionsForm_Load(object sender, EventArgs e)
      {
         NewOptions = Program.Opt.Clone();
         propertyGrid1.SelectedObject = NewOptions;
      }

      private void propertyGrid1_PropertyValueChanged(object s, PropertyValueChangedEventArgs e)
      {
         propertyGrid1.Refresh();
      }

      private void button2_Click(object sender, EventArgs e)
      {
         Program.Opt = NewOptions;
      }
   }
}
